#include <iostream>

using namespace std;

typedef void(*pFunc)();

class Base
{
public:
	virtual void f() {cout << "f" << endl;};
	virtual void g() {cout << "g" << endl;};
};

int main(int argc, char *argv[])
{
	pFunc pF = NULL;
	Base b;
	pF = (pFunc)*(long*)*(long*)&b;
	pF();
	return 0;
}
